local io = require[[async-io]]
local async = require[[async]].new()
local stream = {}
local state = {}

io.install(async, stream, state)
print(stream._io, state._io)

stream._io.timeout(function(t)
	print(t, "hello")
	state._io.timeout(function(t)
		print(t, "world")
		async:timeout(function()
			async:quit()
		end, 1)
	end, 0.5)
end, 0.5)

async:run()

